package com.xbongbong.pro.message.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 微信详情调整维护文档
 * https://xbb.yuque.com/xbb/hgy8lq/gk52dg
 */
@Getter
public enum DistributorWechatUrlEnum {

    /**
     * 订货单
     */
    ORDER_DETAIL("enum.distributorWechatUrl.name.order_detail", "/order-package","/pages/order-details/index?dataId=%s&businessType=201"),
    /**
     * 退货单
     */
    RETURN_DETAIL("enum.distributorWechatUrl.name.return_detail", "/order-package", "/pages/order-details/index?dataId=%s&businessType=202"),

    COUPON_DETAIL("enum.distributorWechatUrl.name.order_detail", "/marketing-package","/pages/coupon-list/index"),
    /**
     * 商城列表页
     */
    MALL_DETAIL("enum.distributorWechatUrl.name.mall_detail", "","/pages/mall/index"),

    STATEMENT_DETAIL("对账单详情", "/fund-package", "/pages/detail/index?dataId=%s&businessType=5403"),

    ;

    /**
     * 中文描述
     */
    private final String name;
    /**
     * 业务目录
     */
    private final String root;
    /**
     * 路径URL
     */
    private final String url;


    DistributorWechatUrlEnum(String name, String root, String url) {
        this.name = name;
        this.root = root;
        this.url = url;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
